package com.fast.user.model.member;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

/**
 * 互看记录 类名:com.fast.user.model.member.BrowseMemberInfo
 * <pre>
 * 标题:
 * 编写者:lushuifa
 * 创建时间:2018年8月3日 上午12:19:45
 * </pre>
 */
@Entity
@Table(name = "t_user_browseMemberInfo")
@DynamicInsert(true)
@DynamicUpdate(true)
public class BrowseMemberInfo implements Serializable {

	private static final long serialVersionUID = 1964003620582829579L;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "id", unique = true, nullable = false, length = 10)
	private int id = 0;
	@Column(name = "uuid", length = 64)
	private String uuid = "";

	// ============================基本信息===开始======================================
	@Column(name = "left_user_id", columnDefinition = ("varchar(64) comment '被浏览用户id'"))
	private String leftUserId = "";
	@Column(name = "left_user_Name", columnDefinition = ("varchar(64) comment '被浏览用户'"))
	private String leftUserName = "";
	
	@Column(name = "right_user_id", columnDefinition = ("varchar(64) comment '浏览用户id'"))
	private String rightUserId = "";
	@Column(name = "right_User_Name", columnDefinition = ("varchar(64) comment '浏览用户'"))
	private String rightUserName = "";
	
	@Column(name = "browse_ip", columnDefinition = ("varchar(64) comment '浏览用户IP'"))
	private String browseIp = "";
	@Column(name = "browser_Point", columnDefinition = ("varchar(64) comment '浏览用户位置信息'"))
	private String browserPoint = "";

	// ==================创建与编辑信息======================
	@Column(name = "creater_id", columnDefinition = ("int(10) comment '创建人id'"))
	private int createrId = 0;// 编辑人Id
	@Column(name = "creater", columnDefinition = ("varchar(64) comment '创建人'"))
	private String creater = "";// 编辑人
	@Column(name = "create_time")
	@Temporal(TemporalType.TIMESTAMP)
	private Date createTime;
	@Column(name = "delete_flag", columnDefinition = ("int(1) comment '删除标识'"))
	private int deleteFlag = 0;// 默认为不删除，1为删除

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getUuid() {
		return uuid;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}

	public String getBrowseIp() {
		return browseIp;
	}

	public void setBrowseIp(String browseIp) {
		this.browseIp = browseIp;
	}

	public String getBrowserPoint() {
		return browserPoint;
	}

	public void setBrowserPoint(String browserPoint) {
		this.browserPoint = browserPoint;
	}

	public int getCreaterId() {
		return createrId;
	}

	public void setCreaterId(int createrId) {
		this.createrId = createrId;
	}

	public String getCreater() {
		return creater;
	}

	public void setCreater(String creater) {
		this.creater = creater;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public int getDeleteFlag() {
		return deleteFlag;
	}

	public void setDeleteFlag(int deleteFlag) {
		this.deleteFlag = deleteFlag;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public String getLeftUserId() {
		return leftUserId;
	}

	public void setLeftUserId(String leftUserId) {
		this.leftUserId = leftUserId;
	}

	public String getLeftUserName() {
		return leftUserName;
	}

	public void setLeftUserName(String leftUserName) {
		this.leftUserName = leftUserName;
	}

	public String getRightUserId() {
		return rightUserId;
	}

	public void setRightUserId(String rightUserId) {
		this.rightUserId = rightUserId;
	}

	public String getRightUserName() {
		return rightUserName;
	}

	public void setRightUserName(String rightUserName) {
		this.rightUserName = rightUserName;
	}

	@Override
	public String toString() {
		return "BrowseMemberInfo [id=" + id + ", uuid=" + uuid + ", leftUserId=" + leftUserId + ", leftUserName="
				+ leftUserName + ", rightUserId=" + rightUserId + ", rightUserName=" + rightUserName + ", browseIp="
				+ browseIp + ", browserPoint=" + browserPoint + ", createrId=" + createrId + ", creater=" + creater
				+ ", createTime=" + createTime + ", deleteFlag=" + deleteFlag + "]";
	}

}
